package com.example.agriculyural.FactoryMethod;

import com.example.agriculyural.FactoryMethod.AgriculturalMachine;

public class HarvestingMachine extends AgriculturalMachine {
    public HarvestingMachine(String id) {
        super(id);
    }

    @Override
    public void performOperation() {
        this.status = "收割中";
        System.out.println("收割机 " + id + " 正在执行收割作业");
    }

    @Override
    public String getMachineType() {
        return "收割机";
    }
}

